<?php
/**
 * Created by PhpStorm.
 * User: yuyiwen
 * Date: 2018/10/26
 * Time: 上午9:47
 */

namespace app\admin\controller;


use think\Controller;
use think\Request;

class Common    extends Controller
{
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        if ( is_null(session('name' )) )
        {
            $this->error('请登录' , 'Log/login');
        }
    }
}